package billing.i.sys;

import org.apache.ibatis.session.SqlSession;

import billing.i.dao.map.UserMapping;
import billing.i.entity.User;

public class Test {
	public static void main(String[] args) {
		SqlSession session = Ibatis.getSession();
		UserMapping mapping = session.getMapper(UserMapping.class);
		User user = new User();
		user.setUserName("aaa");
		user.setAge(18);
		user.setSex(1);
		mapping.addObject(user);
		session.commit();
		session.close();
	}
}
